package com.ronsai.umtrack.model;

import android.content.Context;

import com.ronsai.umtrack.api.Api;
import com.ronsai.umtrack.api.ObserverResponseListener;
import com.ronsai.umtrack.base.BaseModel;
import com.ronsai.umtrack.util.ParamsUtil;

import java.util.HashMap;

public class UploadModel<T> extends BaseModel {

    public void getQiniuUploadToken(Context context, HashMap<String, String> map, ObserverResponseListener<T> listener) {
        subscribe(context, Api.getApiService().getQiniuUploadToken(ParamsUtil.notNullValue(map)), listener);
    }

}
